package com.springboot.demo.old;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfiguration {

    @Bean
    public CCC ccc(DDD ddd) {
        CCC ccc = new CCC();
        ccc.setDdd(ddd);
        return ccc;
    }

    @Bean
    public DDD ddd(){
        return new DDD();
    }


}
